package com.mybatis.entity;


/*
* 课程表对应的实体类
* */
public class Course {

    private String cno;
    private String cname;
    private Integer credit;

    public Course(){

    }

    public Course(String cno, String cname, Integer credit) {
        this.cno = cno;
        this.cname = cname;
        this.credit = credit;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cno='" + cno + '\'' +
                ", cname='" + cname + '\'' +
                ", credit=" + credit +
                '}';
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }
}
